package cn.mymanagesys.dao.impl;

import cn.mymanagesys.dao.BaseDao;
import cn.mymanagesys.dao.SysPostDao;
import cn.mymanagesys.entity.SysPost;

import java.util.List;

public class SysPostDaoImpl extends BaseDao<SysPost> implements SysPostDao {
    @Override
    public List<SysPost> list() {
        String sql="SELECT `post_id` as postId, `post_code` as postCode, `post_name` as postName, `post_sort` as postSort, `status` from sys_post";

        List<SysPost> sysPostList = super.queryBeanList(sql, null);
        return sysPostList;
    }
}
